using System;
using System.Collections.Generic;
using System.Text;
using RS.DOM.Common;
using RS.DOM.Construction;

namespace RS.DOM.Types
{
    public class Item: Token
    {
        #region Constructors

        public Item(Context context, DocItem docItem)
            : base(context, docItem)
        {
            base.TokenType = TokenType.Item;
        }

        #endregion

        #region Properties

        public DocItem Result
        {
            get
            {
                return (DocItem)base.Result;
            }
        }

        #endregion

        #region Methods

        public override Token Operation(Token token, OperationType type)
        {
            if (true)
            {
                return base.Operation(token, type);
            }
        }

        public override Token Create()
        {
            return new Item(this.Context, this.Result);
        }

        #endregion
    }
}
